package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 理赔申请对象 app_user_apply
 *
 * @author ruoyi
 * @date 2025-06-28
 */
@ApiModel(value = "AppUserApply", description = "理赔申请对象")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AppUserApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "理赔申请ID", example = "1")
    private Long id;

    /** 所属用户 */
    @Excel(name = "所属用户")
    @ApiModelProperty(value = "所属用户ID", example = "1001")
    private Long userId;

    /** 姓名 */
    @Excel(name = "姓名")
    @ApiModelProperty(value = "申请人姓名", example = "张三")
    private String realName;

    /** 手机号 */
    @Excel(name = "手机号")
    @ApiModelProperty(value = "申请人手机号", example = "13800138000")
    private String phone;

    /** 证件类型 */
    @Excel(name = "证件类型")
    @ApiModelProperty(value = "申请人证件类型", example = "身份证")
    private String certificateType;

    /** 证件号码 */
    @Excel(name = "证件号码")
    @ApiModelProperty(value = "申请人证件号码", example = "11010119900307551X")
    private String certificateCode;


    @ApiModelProperty(value = "申请人证件有效期")
    private String validityTime;

    /** 性别 1男 2女 */
    @Excel(name = "性别 1男 2女")
    @ApiModelProperty(value = "申请人性别，1 表示男，2 表示女", example = "1")
    private Integer sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "申请人出生日期", example = "1990-03-07")
    private Date birthday;

    /** 出险日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出险日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "出险日期", example = "2025-06-28")
    private Date occurTime;

    /** 出险描述 */
    @Excel(name = "出险描述")
    @ApiModelProperty(value = "出险情况描述", example = "意外摔倒导致骨折")
    private String occurDes;

    /** 领款姓名 */
    @Excel(name = "领款姓名")
    @ApiModelProperty(value = "领款人姓名", example = "李四")
    private String lingkuanRealName;

    /** 领款银行名称 */
    @Excel(name = "领款银行名称")
    @ApiModelProperty(value = "领款银行名称", example = "中国工商银行")
    private String lingkuanBlankName;

    /** 领款银行卡号 */
    @Excel(name = "领款银行卡号")
    @ApiModelProperty(value = "领款银行卡号", example = "6222020200012345678")
    private String lingkuanBlanCode;

    /** 关系证明图 */
    @Excel(name = "关系证明图")
    @ApiModelProperty(value = "关系证明图片路径", example = "/images/relationship.jpg")
    private String relationshipImages;

    /** 银行卡图 */
    @Excel(name = "银行卡图")
    @ApiModelProperty(value = "银行卡图片路径", example = "/images/bankcard.jpg")
    private String blankImages;

    /** 医疗费用图 */
    @Excel(name = "医疗费用图")
    @ApiModelProperty(value = "医疗费用图片路径", example = "/images/medical_cost.jpg")
    private String yiliaoImages;

    /** 病历图 */
    @Excel(name = "病历图")
    @ApiModelProperty(value = "病历图片路径", example = "/images/medical_record.jpg")
    private String bingImages;

    /** 是否删除 */
    @Excel(name = "是否删除")
    @ApiModelProperty(value = "是否删除，0 表示未删除，1 表示已删除", example = "0")
    private Integer deleted;

    @ApiModelProperty(value = "理赔申请状态", example = "1")
    private Integer applyStatus;
}
